package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblWpRateConfigMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblWpRateConfig;
import com.settlement.system.service.ITblWpRateConfigService;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 唯品会比例设置 服务实现类
 * @author Ximi
 * @since 2020-04-15
 */
@Service
public class TblWpRateConfigServiceImpl extends BaseServiceImpl implements ITblWpRateConfigService {

    @Resource
    private TblWpRateConfigMapper tblWpRateConfigMapper;

    @Override
    public BaseMapper init() {
        return tblWpRateConfigMapper;
    }

    @Override
    public List<TblWpRateConfig> selectByCompanyNoAndEffectiveTimeAndBrandNoandDeliveryType(Map<String, Object> params) throws ServiceException {
        return tblWpRateConfigMapper.selectByCompanyNoAndEffectiveTimeAndBrandNoandDeliveryType(params);
    }
}

